-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle srcset local image paths with spaces #9537
fix: handle srcset local image paths with spaces #9537
Conversation
🦋 Changeset detectedLatest commit: 4fe883e The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Florian Lefebvre <[email protected]>
The following test is failing with the size being equal to 2 instead of 1: astro/packages/astro/test/core-image.test.js Lines 255 to 261 in b34bd2b
I undid my changes and found the test was still failing on main. It seems to be related to when densities = 1: astro/packages/astro/test/fixtures/core-image/src/pages/srcset.astro Lines 27 to 33 in b34bd2b
I don't think this has anything to do with this PR?! Any insight into why this test is suddenly failiing? |
No, the test failure is valid because it checks that |
Ah that makes sense. Thanks for all your help! |
Changes
fix #9535
srcset
now replaces%20
(see issue #9535 for details).Testing
Added testing which looks at the
<img>
element after build and checkssrcset
is correct.Docs
N/A (bug fix)